type Permission = {
  children: Array<Permission>
  id: number
  method: string
  parentId: number
  permission: string
  serviceName: string
  sourceName: string
  sourceUrl: string
}

export type GetPermissionRes = Array<Permission>

export type LoginRes = {
  password: string
  permissions: Array<Permission>
  realName: string
  tokenInfo: {
    tokenName: string
    tokenValue: string
  }
  userName: string
  userId: string
}

export type Page = {
  currentPage: number
  nextPage: number
  offset: number
  pageSize: number
  prePage: number
  totalCount: number
  totalPage: number
}
export type GetCouponListTypeReq = {
  /**
   * - `1`签到卡卷
   * - `2`卡卷
   * - `3`开箱卡卷
   * - `4`积分兑换前
   */
  type: string
}
export type GetCouponListTypeRes = Array<GetCouponListTypeResItem>
export type GetCouponListTypeResItem = { id: number; name: string }
